﻿using System.Runtime.Serialization;

namespace GoogleApi
{
    [DataContractAttribute]
    public class Prediction
    {
        [DataMember]
        public string description { get; set; }

        [DataMember]
        public string id { get; set; }

        [DataMember]
        public string reference { get; set; }

        [DataMember]
        public string[] types { get; set; }

        [DataMember]
        public Term[] terms { get; set; }

        [DataMember]
        public MatchedSubString[] matched_substrings { get; set; }
    }


    [DataContractAttribute]
    public class Term
    {
        [DataMember]
        public string value { get; set; }

        [DataMember]
        public string offset { get; set; }
    }


    [DataContractAttribute]
    public class MatchedSubString
    {
        [DataMember]
        public string offset { get; set; }

        [DataMember]
        public string length { get; set; }
    }
}